package com.meilingcloud.research.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.meilingcloud.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 课题任务-样本 对象 rws_task_sample
 *
 * @author chenl
 * @date 2021-03-23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("rws_task_sample")
public class RwsTaskSample implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 任务ID
     */
    @Excel(name = "任务ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taskId;

    /**
     * 样本复份ID
     */
    @Excel(name = "样本复份ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sampBackupId;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
